{# **
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * #}

{% trans_default_domain 'Admin.Advparameters.Notification' %}

{% embed '@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig' with {
  id: 'import_progress_modal',
  title: 'Importing your data...'|trans,
  closable: false,
  progressbar: {
    id: 'import_progress_bar',
    label: 'Validating data...'|trans
  },
  actions: [
    {
      type: 'button',
      label: 'Ignore warnings and continue?'|trans,
      class: 'btn btn-outline-warning btn-lg js-continue-import',
    },
    {
      type: 'button',
      label: 'Abort import'|trans,
      class: 'btn btn-outline-danger btn-lg js-abort-import',
    },
    {
      type: 'button',
      label: 'Close'|trans({}, 'Admin.Actions'),
      class: 'btn btn-outline-secondary btn-lg js-close-modal',
    }
  ],
} %}
  {% block content %}
    <div class="modal-body"
         data-importing-label="{{ 'Importing your data...'|trans({}, 'Admin.Advparameters.Notification') }}"
         data-imported-label="{{ 'Data imported!'|trans({}, 'Admin.Advparameters.Notification') }}"
    >
      <div class="alert alert-success js-import-success d-none" role="alert">
        <span class="alert-text">
          {{ 'Data imported!'|trans({}, 'Admin.Advparameters.Notification') }}
          {{ "Look at your listings to make sure it's all there as you wished."|trans({}, 'Admin.Advparameters.Notification') }}
        </span>
      </div>
      <div class="alert alert-warning js-post-limit-warning d-none" role="alert">
        <div class="alert-text">
          {{ 'Warning, the current import may require a PHP setting update, to allow more data to be transferred. If the current import stops before the end, you should increase your PHP "post_max_size" setting to [1]%size%[/1]MB at least, and try again.'|trans({}, 'Admin.Advparameters.Notification')|replace({'[1]': '<span id="post_limit_value">', '%size%': '16', '[/1]': '</span>'})|raw }}
        </div>
      </div>
      <div class="alert alert-warning js-import-warnings d-none" role="alert">
        <span class="alert-text">
          {{ 'Some errors were detected. Please check the details:'|trans({}, 'Admin.Advparameters.Notification') }}
        </span>
      </div>
      <div class="alert alert-danger js-import-errors d-none" role="alert">
        <span class="alert-text">
          {{ 'Errors occurred:'|trans({}, 'Admin.Advparameters.Notification') }}
        </span>
      </div>
      <div class="alert alert-info js-import-info d-none" role="alert">
        <span class="alert-text">
          {{ 'We made the following adjustments:'|trans({}, 'Admin.Advparameters.Notification') }}
        </span>
      </div>
    </div>
  {% endblock %}
{% endembed %}
